<template>
    <div>

    </div>
</template>

<script>
import {
    Url_Key,
    RouteUrl
} from "src/common/const";
export default {
    beforeMount() {
        let url = window.location.href;
        this.$init.subPageInit(this);
        let jumpUrl = url.substring(url.indexOf(Url_Key.JUMP_URL + "=") + 8, url.length);
        jumpUrl = unescape(jumpUrl);
        // debugger
        // debugger
        // this.$common.getShareUrlKey(url, Url_Key.JUMP_URL);
        // console.log(jumpUrl);
        // console.log(jumpUrl);
        // console.log(jumpUrl);
        // console.log(jumpUrl);
        // console.log(jumpUrl);
        // console.log(jumpUrl);
        // alert(1);
        if (this.$common.isEmpty(jumpUrl)) {
            this.$common.goUrl(this, RouteUrl.INSURESUCCESS);
        } else {
            if (jumpUrl.indexOf("http") > -1) {
                // jumpUrl.replace("https", "http");
                // console.log("-----------------");
                // console.log(jumpUrl);y
                // alert(2);
                window.location.href = jumpUrl;
            } else {
                this.$common.goUrl(this, RouteUrl.INSURESUCCESS);
            }
        }
    },
    mounted() {
    }
}
</script>

<style>

</style>
